package com.hsgene.order.service.api;

import com.hsgene.common.util.result.ApiResult;
import com.hsgene.order.service.api.impl.UserServiceImpl;
import com.hsgene.user.domain.GeneticTestingOperationAccount;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Description: //TODO
 * @ProjectName: hdas-geneshop-server
 * @Package: com.hsgene.product.service.api
 * @Author: FX
 * @CreateDate: 2018/10/24 13:30
 * @Version: 1.0
 * Copyright: Copyright (c) 2018
 */
@FeignClient(value = "ms-mod-user", path = "/v1.0/genetic/testing/account", fallback = UserServiceImpl.class)
public interface UserService {
    /**
     * 获取用户信息
     *
     * @param userId 用户id
     * @return 用户信息
     */
    @GetMapping("{userId}")
     ApiResult<GeneticTestingOperationAccount> getUserInfo(
            @PathVariable("userId") String userId);
}
